package cn.edu.scau.cmi.liujiaming.chapter04;

public class Example4_4 {
	public static void main(String args[]) {
		double sum=0,temp=1;
		int i=0;
		while(i<20) {
			sum=sum+temp;
			i++;
			temp=temp/i;
			
		}
		System.out.println("sum="+sum);
	}

	
}
